home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / k3bdeviceselectiondialog.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-05-27  |  1.6 KB  |  63 lines

  1. /*
  2.  *
  3.  * $Id: k3bdeviceselectiondialog.h 619556 2007-01-03 17:38:12Z trueg $
  4.  * Copyright (C) 2003 Sebastian Trueg <trueg@k3b.org>
  5.  *
  6.  * This file is part of the K3b project.
  7.  * Copyright (C) 1998-2007 Sebastian Trueg <trueg@k3b.org>
  8.  *
  9.  * This program is free software; you can redistribute it and/or modify
  10.  * it under the terms of the GNU General Public License as published by
  11.  * the Free Software Foundation; either version 2 of the License, or
  12.  * (at your option) any later version.
  13.  * See the file "COPYING" for the exact licensing terms.
  14.  */
  15.  
  16.  
  17.  
  18. #ifndef K3B_DEVICE_SELECTION_DIALOG_H
  19. #define K3B_DEVICE_SELECTION_DIALOG_H
  20.  
  21.  
  22. #include <kdialogbase.h>
  23. #include "k3b_export.h"
  24. #include <qptrlist.h>
  25.  
  26. namespace K3bDevice {
  27.   class Device;
  28. }
  29.  
  30.  
  31. class LIBK3B_EXPORT K3bDeviceSelectionDialog : public KDialogBase
  32. {
  33.   Q_OBJECT
  34.  
  35.  public:
  36.   K3bDeviceSelectionDialog( QWidget* parent = 0, 
  37.                 const char* name = 0, 
  38.                 const QString& text = QString::null, 
  39.                 bool modal = false );
  40.   ~K3bDeviceSelectionDialog();
  41.  
  42.   void addDevice( K3bDevice::Device* );
  43.   void addDevices( const QPtrList<K3bDevice::Device>& );
  44.  
  45.   void setSelectedDevice( K3bDevice::Device* );
  46.  
  47.   K3bDevice::Device* selectedDevice() const;
  48.  
  49.   static K3bDevice::Device* selectWriter( QWidget* parent, 
  50.                       const QString& text = QString::null );
  51.   static K3bDevice::Device* selectDevice( QWidget* parent, 
  52.                       const QString& text = QString::null );
  53.   static K3bDevice::Device* selectDevice( QWidget* parent, 
  54.                       const QPtrList<K3bDevice::Device>& devices,
  55.                       const QString& text = QString::null );
  56.  
  57.  private:
  58.   class Private;
  59.   Private* d;
  60. };
  61.  
  62. #endif
  63.